package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.UserInfo;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserInfo record);

    int insertSelective(UserInfo record);

    UserInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateByPrimaryKey(UserInfo record);

	UserInfo findByUserName(String username);

	List<UserInfo> search(Map<String, Object> map);

	int count(Map<String, Object> map);

	List<UserInfo> level(Map<String, Object> params);
	
	List<UserInfo> findbyduty2(int projectitemid);
	
	List<UserInfo> findbyduty3(int projectitemid);

	UserInfo searchbymobile(String mobile);

	int updateStatus(Map<String, Object> map);
	
	List<UserInfo> selectbycompanyrole(int companyid);

	/**
	* @Title: selectbycompany
	* @Description: TODO
	* @param companyid
	* @return 参数 
	* @return List<UserInfo> 返回类型
	* @throws
	*/
	List<UserInfo> selectbycompany(int companyid);

	/**
	* @Title: duty3
	* @Description: TODO
	* @param params
	* @return 参数 
	* @return List<UserInfo> 返回类型
	* @throws
	*/
	List<UserInfo> duty3(Map<String,Object> params);

	/**
	* @Title: selectbycompanyroleid
	* @Description: TODO
	* @param companyid
	* @return 参数 
	* @return List<UserInfo> 返回类型
	* @throws
	*/
	List<UserInfo> selectbycompanyroleid(Integer companyid);
}